package com.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;

public class MarkerCallBack {
	
	private MapServiceAsync mapService = GWT.create(MapService.class);
	
	public void markerClicked(long id){
		
		mapService.markerClicked(id, new AsyncCallback<String>() {
			
			@Override
			public void onSuccess(String msg) {
				GWTMap.showMessage(msg);
			}
			
			@Override
			public void onFailure(Throwable caught) {
				GWTMap.showMessage("Server Connection Error !");
			}
		});
		
	}
}
